package payroll25.trans;

import payroll25.PaymentClassification;
import payroll25.classification.SalariedClassfication;

public class AddSalariedEmployeeTransaction extends AddEmployeeTransaction {

    private Double salary;

    public AddSalariedEmployeeTransaction(int empId, String name, String address, Double salary) {
        super(empId, name, address);
        this.salary = salary;
    }


    @Override
    protected PaymentClassification getPaymentClassification() {
        return new SalariedClassfication(salary);
    }
}
